package utils

import "time"

func DayStart(t time.Time) time.Time {
	return time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, t.Location())
}

func DayEnd(t time.Time) time.Time {
	start := DayStart(t)
	return start.AddDate(0, 0, 1).Add(-1 * time.Second)
}
